message(STATUS "FIND OpenCV")
#TODO:OpenCV的位置
IF (CMAKE_SYSTEM_NAME MATCHES "Linux")
    set(OpenCV_DIR )
ELSEIF (CMAKE_SYSTEM_NAME MATCHES "Windows")
    set(OpenCV_DIR ${PROJECT_SOURCE_DIR}/3rdparty/opencv/build)
ENDIF (CMAKE_SYSTEM_NAME MATCHES "Linux")
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
message(STATUS "OpenCV VERSION is ${OpenCV_VERSION}")

foreach(OpenCV_INCLUDE_DIR ${OpenCV_INCLUDE_DIRS})
    message(STATUS "OpenCV_INCLUDE_PATH:${OpenCV_INCLUDE_DIR}")
    include_directories(${OpenCV_INCLUDE_DIR})
endforeach()
foreach(OpenCV_LIBRARIE ${OpenCV_LIBS})
    message(STATUS "OPENCV_LIBRARIE:${OpenCV_LIBRARIE}")
endforeach()